﻿using HuiLian.Model.Models.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuiLian.Model.Models
{
    [Table("Food")]
    public class Food : ModelBase 
    {
        private int id;
        private string no;
        private string name;
        private string image;
        private double price;
        private string type;
        private string date;
        private string unit;
        private int stock;
        [Key]
        public int Id { get { return id; } set { id = value; OnPropertyChanged("Id"); } }
        public string No { get { return no; } set { no = value; OnPropertyChanged("No"); } }
        public string Name { get { return name; } set { name = value; OnPropertyChanged("Name"); } }
        public string Image { get { return image; } set { image = value; OnPropertyChanged("Image"); } }
        public double Price { get { return price; } set { price = value; OnPropertyChanged("Price"); } }
        public string Type { get { return type; } set { type = value; OnPropertyChanged("Type"); } }
        public string Date { get { return date; } set { date = value; OnPropertyChanged("Date"); } }
        public string Unit { get { return unit; } set { unit = value; OnPropertyChanged("Unit"); } }
        public int Stock { get { return stock; } set { stock = value; OnPropertyChanged("Stock"); } }
    }
}
